<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<link rel="stylesheet" type="text/css" href="/lib/bootstrap/dist/css/bootstrap.min.css">
<script type="text/javascript" src="/lib/jquery.min.js"></script>
<body>
	<div class="container">
		<div class="col-md-6 col-md-offset-3">
            <div class="panel panel-primary">
                <div class="panel-heading">登录管理系统</div>
                <div class="panel-body">
                    <form action="/account/login" method="post" class="form-horizontal">
                        <div class="form-group">
                            <label for="uname" class="col-sm-2 control-label">用户名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="uname" id="uname" placeholder="请输入用户名">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="upwd" class="col-sm-2 control-label">密码</label>
                            <div class="col-sm-10">
                                <input type="password" class="form-control" name="upwd" id="upwd" placeholder="请输入密码">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="vcode" class="col-sm-2 control-label">验证码</label>
                            <div class="col-sm-7">
                                <input type="text" class="form-control" name="vcode" id="vcode" placeholder="请输入验证码">
                            </div>
                            <div class="col-sm-3">
                                <img id="vcodeimg" src="/account/vcode">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-default">登录</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
    </div>
	</div>
</body>
<script type="text/javascript">
    // 点击更新二维码,更新其src
    $("#vcodeimg").on("click",function(){
        console.log(1);
        $("#vcodeimg").attr("src","/account/vcode?rid"+Math.random());
    })
</script>
</html>